﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.Dtos
{
    /// <summary>
    /// 采购询价新增dto
    /// </summary>
    public class ProcureEnquiryCreateDto
    {
        public int ProcureEnquiryId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PEDocumentsNumber { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 定价人员
        /// </summary>
        public string? PEPricingPeople { get; set; }
        /// <summary>
        /// 询价人员
        /// </summary>
        public string? PEInquiryClerk { get; set; }
        /// <summary>
        /// 询价日期
        /// </summary>
        public string? PEInquiryDate { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public int? PENum { get; set; }
        /// <summary>
        /// 产品单价
        /// </summary>
        public decimal? PEPrice { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? PETaxRate { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool? IsState { get; set; } = false;
        public List<InquiryVendorDto> dtos { get; set; }
    }
    public class InquiryVendorDto
    {
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? VendorName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? VendorNum { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? VendorPrice { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal? SumPrice { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public string? DeliveryDate { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
    }
}
